﻿
namespace ParaEditor.Domain.Entities
{
    public class Para4030Pk
    {
        public virtual int infoVer { get; set; }
        public virtual long odSeq { get; set; }
        public virtual string ioStat { get; set; }
        public virtual string oiStat { get; set; }
        public virtual long odWayCount { get; set; }
        public virtual long odId { get; set; }
        public virtual long subCount { get; set; }
        public virtual long subId { get; set; }
        public virtual int wayPercent { get; set; }
        public virtual string subIoStat { get; set; }
        public virtual string subOiStat { get; set; }
        public virtual long subroadLength { get; set; }
        public virtual short subTime { get; set; }

        public override bool Equals(object obj)
        {
            if (obj is Para4030Pk)
            {
                Para4030Pk pk = obj as Para4030Pk;
                if (this.infoVer == pk.infoVer
                     && this.odSeq == pk.odSeq
                    && this.ioStat.Equals( pk.ioStat)
                    && this.oiStat.Equals( pk.oiStat)
                    && this.odWayCount == pk.odWayCount
                    && this.odId == pk.odId
                    && this.subCount == pk.subCount
                    && this.subId == pk.subId
                    && this.wayPercent == pk.wayPercent
                    && this.subIoStat.Equals( pk.subIoStat)
                    && this.subOiStat.Equals(pk.subOiStat)
                    && this.subroadLength == pk.subroadLength
                    && this.subTime == pk.subTime)
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
            return false;
        }

        public override int GetHashCode()
        {
            return base.GetHashCode();
        }
    }
}
